﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Describe.aspx.cs" ValidateRequest="false"
    Inherits="BaseWeb.Modules.Describe" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="Stylesheet" href="../kindeditor/themes/default/default.css" />
    <link rel="stylesheet" href="../kindeditor/plugins/code/prettify.css" />

    <script charset="utf-8" src="../kindeditor/kindeditor.js"></script>

    <script charset="utf-8" src="../kindeditor/lang/zh_CN.js"></script>

    <script charset="utf-8" src="../kindeditor/plugins/code/prettify.js"></script>

    <script>
        KindEditor.ready(function(K)
        {
            var editor1 = K.create('#content1', {
                cssPath: '../plugins/code/prettify.css',
                uploadJson: '../asp.net/upload_json.ashx',
                fileManagerJson: '../asp.net/file_manager_json.ashx',
                allowFileManager: true,
                afterCreate: function()
                {
                    var self = this;
                    K.ctrl(document, 13, function()
                    {
                        self.sync();
                        K('form[name=form1]')[0].submit();
                    });
                    K.ctrl(self.edit.doc, 13, function()
                    {
                        self.sync();
                        K('form[name=form1]')[0].submit();
                    });
                }
            });
            prettyPrint();
        });

        var resizeWindow = function()
        {
            if (window.frameElement != null)
            { 
                //window.frameElement.style.height = document.documentElement.scrollHeight;
                window.frameElement.style.height = "600px";
            }
        }
    </script>

    <style type="text/css">
        *
        {
            margin: 0;
            padding: 0;
        }
        .flip
        {
            margin: 2px;
            padding: 2px;
            text-align: center;
            border: solid 1px #c3c3c3;
            font-weight: bold;
            font-family: @幼圆;
            background: #e5eecc;
        }
        .panel
        {
            margin: 2px;
            padding: 2px;
            display: none;
            background: #e5eecc;
            border: solid 1px #c3c3c3;
        }
    </style>
</head>
<body onload='resizeWindow()'>
    <form id="form1" runat="server">
    <div>
        <textarea id="content1" cols="100" rows="8" style="width: 100%; height: 400px; visibility: hidden;"
            runat="server"></textarea>
    </div>
    </form>
</body>
</html>
